/**
 * A Location may be a static location, such as a firehouse, or a dynamic location such as 
 * an apparatus
 * A Location has a current status, a location key which is established on the server, a department 
 * id, and a current location (lat/lng). If the Location is dynamic, it will also have a macAddress.
 */
package com.firstresponder.db;

public class Location {
	private String location_key;
	private String dept_id;
	private String shortName; 
	private String macAddress; //only has a value if it is an apparatus
	private String type; // dynamic if an apparatus, static if a destination
	private String currentStatus;
	private double currLat;
	private double currLong;
	private int priority;  // for the default locations only, this determines which default
	                       // destination will be used first.
	                       // can also be used to order response buttons
	
	public Location() { }
	
	
	public Location(String location_key, String dept_id, String shortName,
			String macAddress, String type, String currentStatus,
			double currLat, double currLong, int priority) {
		super();
		this.location_key = location_key;
		this.dept_id = dept_id;
		this.shortName = shortName;
		this.macAddress = macAddress;
		this.type = type;
		this.currentStatus = currentStatus;
		this.currLat = currLat;
		this.currLong = currLong;
		this.priority = priority;
	}


	public String getLocation_key() {
		return location_key;
	}

	public void setLocation_key(String location_key) {
		this.location_key = location_key;
	}

	public String getMacAddress() {
		return macAddress;
	}

	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}

	public String getCurrentStatus() {
		return currentStatus;
	}

	public void setCurrentStatus(String currentStatus) {
		this.currentStatus = currentStatus;
	}

	public double getCurrLat() {
		return currLat;
	}

	public void setCurrLat(double currLat) {
		this.currLat = currLat;
	}

	public double getCurrLong() {
		return currLong;
	}

	public void setCurrLong(double currLong) {
		this.currLong = currLong;
	}

	
	public String getDept_id() {
		return dept_id;
	}
	public void setDept_id(String dept_id) {
		this.dept_id = dept_id;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}


	public int getPriority() {
		return priority;
	}


	public void setPriority(int priority) {
		this.priority = priority;
	}
	

}
